:root {
  --primary-color: #4361ee;
  --secondary-color: #3f37c9;
  --dark-bg: #1a1a2e;
  --darker-bg: #16213e;
  --light-bg: #f8f9fa;
  --user-msg: #4361ee;
  --bot-msg: #4cc9f0;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.main-body{
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.chat-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 75vh;
  display: flex;
  flex-direction: column;
}

.chat-header {
  background: rgba(67, 97, 238, 0.15);
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.message {
  max-width: 80%;
  padding: 12px 16px;
  margin-bottom: 15px;
  border-radius: 18px;
  position: relative;
  animation: fadeIn 0.3s ease-out;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  word-wrap: break-word;
}

.user-message {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}

.bot-message {
  color: #000;
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}

.input-area {
  background: rgba(26, 26, 46, 0.7);
  padding: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: white;
  border-radius: 25px;
  padding: 12px 20px;
}

.chat-input:focus {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  color: white;
}

.send-btn {
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  border: none;
  transition: all 0.3s ease;
}

.send-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.faq-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
}

.faq-card:hover {
  background: rgba(67, 97, 238, 0.15);
  transform: translateY(-5px);
}

.faq-card .card-body {
  padding: 20px;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(67, 97, 238, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.typing-indicator {
  display: inline-flex;
  align-items: center;
  background: rgba(76, 201, 240, 0.2);
  padding: 10px 15px;
  border-radius: 20px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: var(--bot-msg);
  border-radius: 50%;
  margin: 0 3px;
  animation: pulse 1.5s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.scroll-down-btn {
  position: absolute;
  right: 20px;
  bottom: 80px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bot-msg);
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  z-index: 10;
}

.scroll-down-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .chat-container {
    height: 65vh;
  }

  .message {
    max-width: 90%;
  }

  .sidebar {
    margin-top: 30px;
  }
}